package xian.woniuxy.mapper.custom;

import org.apache.ibatis.annotations.Param;
import xian.woniuxy.mapper.UserMapper;

import java.util.List;

/**
 * @author gao
 * @date 2023/07/05 14:06:54
 */
public interface CustomUserMapper extends UserMapper {
    int clearUserRoles(Integer userId);

    int distributeUserRoles(@Param("userId") Integer userId, @Param("roleIds") List<Integer> roleIds);
}
